package com.mabs.ground.client.module.mod2.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.mabs.ground.client.common.MyPlace;

/**
 * @author <a href="Email: mohamedarbi.benslimane@allence-tunisie.com">Ben
 *         Slimane Arbi</a>
 * @version 1.0
 * @since 1.0 - 25 juil. 2014 - 20:04:08
 */
public class GoodbyePlace extends MyPlace {
	private String goodbyeName;

	public GoodbyePlace(String token) {
		super("GoodBye");
		this.goodbyeName = token;
	}

	public String getGoodbyeName() {
		return goodbyeName;
	}

	public static class Tokenizer implements PlaceTokenizer<GoodbyePlace> {

		public String getToken(GoodbyePlace place) {
			return place.getGoodbyeName();
		}

		public GoodbyePlace getPlace(String token) {
			return new GoodbyePlace(token);
		}
	}
}
